using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;

namespace TTXNA.src.Util
{
    public class RectangleF
    {
        Vector2 location;
        Vector2 size;

        public RectangleF()
        {
            location = Vector2.Zero;
            size = Vector2.Zero;
        }

        public RectangleF(Vector2 location, Vector2 size)
        {

        }

        public bool Contains(int x, int y)
        {
            return (x >= location.X && x <= location.X + size.X
                    && y >= location.Y && y <= location.Y + size.Y);
        }

        public bool Contains(Point point)
        {
            return Contains(point.X, point.Y);
        }

        public float Height
        {
            get { return size.Y; }
            set { size.Y = value; }
        }

        public Vector2 Size
        {
            get { return size; }
            set { size = value; }
        }

        public Vector2 Location
        {
            get { return location; }
            set { location = value; }
        }

        public float Width
        {
            get { return size.X; }
            set { size.X = value; }
        }

        public float X
        {
            get { return location.X; }
            set { location.X = value; }
        }

        public float Y
        {
            get { return location.Y; }
            set { location.Y = value; }
        }

        
    }
}
